<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8" http-equiv="refresh" content="3">
    <title>消费者1</title>
    <script src="jquery-1.11.0.min.js" type="text/javascript"></script>
    <script>

        $.ajax({
            url: '../rabbitmqrecv1/getAllOrder',
            success:function (date){
                debugger;
                var order=date.orders;
                var html="<tr><td>编号</td><td>书名</td><td>订单详情</td></tr>";
                for( var i=0;i<order.length;i++){
                    html=html+"<tr><td>"+order[i].id+"</td><td>"+order[i].ordername+"</td><td>"+order[i].messageid+"</td></tr>"
                }
                $('#orders').html(html);
            }
        })
    </script></head><body><table id="orders">
</table></body></html>